package stack_use;

import java.util.Stack;

public class Main {
    /**
     * learn_stack
     * @param args
     */
    public static void main(String[] args) {
        /*Stack<Integer> s = new Stack<>();
        s.push(1);
        s.push(2);
        s.push(3);
        s.push(4);
        s.push(5);
        System.out.println(s.pop());
        System.out.println(s.peek());
        while(!s.empty()){
            s.pop();
        }
        System.out.println(s.size());
        System.out.println(s.empty());*/

        MyQueue queue=new MyQueue();
        queue.push(1);
        queue.push(2);
        queue.push(3);
        queue.pop();
        System.out.println(queue);
    }
}